<extend name="Public:base"/>


<block name="left">
	<ul>
		<li><a href="{:U('Users/lists')}"   >用户列表</a> </li>
		<li><a href="{:U('Users/role')}"    >角色列表</a></li>
		<li><a href="{:U('Users/node')}"    >节点列表</a></li>
		<li><a href="{:U('Users/addUser')}" >添加用户</a></li>
		<li><a href="{:U('Users/addRole')}" >添加角色</a></li>
		<li><a href="{:U('Users/addNode')}" >添加节点</a></li>
	</ul>
</block>

<block name="right">
	<div id="wrap" class="">
			<a href="{:U('Users/addNode')}" class="add-app">添加应用</a>
			
			<foreach name='node' item='app'>
			
				<div id="" class="app">
					<p>
						<strong>{$app.title}</strong>
						[<a href="{:U('Users/addNode',array('pid' => $app['id'],'level' => 2))}">添加控制器</a>]
						[<a href="">删除</a>]
						[<a href="">修改</a>]
					</p>
		

				<foreach name='app.child' item='action'>
					<dl>
						<dt><strong>{$action.title}</strong>
						[<a href="{:U('Users/addNode',array('pid' => $action['id'],'level' => 3))}">添加方法</a>]
						</dt>
					

					<foreach name='action.child' item='method'>
						<dd>
							<span>{$method.title}</span>
							[<a href="">删除</a>]
							[<a href="">修改</a>]
						</dd>
					</foreach>
					</dl>
				</foreach>
						
				</div>	

			</foreach>
	</div>
</block>